Microarchitecture simulation